package com.fenghongzhang.day003mvp;

import com.fenghongzhang.day003mvp.contract.FoodContract;
import com.fenghongzhang.day003mvp.model.FoodModel;

import dagger.Module;
import dagger.Provides;

@Module
public class FoodMoudel {

    private FoodContract.IFoodView iView;

    public FoodMoudel(FoodContract.IFoodView iView) {
        this.iView = iView;
    }

    @Provides
    public FoodContract.IFoodModel getModel(){
        return new FoodModel();
    }

    @Provides
    public FoodContract.IFoodView getView(){
        return iView;
    }

}
